<template>
  <div class="currencyDataBg">
    <el-row>
      <el-col v-for="(item, index) in option.column" :key="index" class="mgtb10" :span="item.span">
        <div><span>{{ item.label }} ：</span><span>{{ item | dataDicTrans(currencyData) }}</span></div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'CurrencyData',
  props: {
    currencyData: {
      type: Object,
      default: function() {
        return {}
      }
    },
    option: {
      type: Object,
      default: function() {
        return {}
      }
    }
  }
}
</script>

<style scoped>
  .currencyDataBg {
    font-size: 14px;
    border: 1px solid #f5f7fa;
    padding: 5px;
    background: #f5f7fa;
    border-radius: 5px;
    margin-top: 5px;
  }

  .mgtb10 {
    margin: 10px 0;
  }

</style>
